<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<html>

<head>
	<meta charset="UTF-8">
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<title>网站后台管理模版</title>
	<link rel="stylesheet" type="text/css" href="../../static/admin/layui/css/layui.css" />
	<link rel="stylesheet" type="text/css" href="../../static/admin/css/admin.css" />
</head>

<body>
<div class="page-content-wrap">
	<form class="layui-form" action="">
		<div class="layui-form-item">
			<div class="layui-inline tool-btn">
				<button class="layui-btn layui-btn-small layui-btn-normal addBtn hidden-xs" data-url="/product/addProduct"><i class="layui-icon">&#xe654;</i></button>

			</div>
			<!--<div class="layui-inline">-->
				<!--<input type="text" name="title" placeholder="请输入标题" autocomplete="off" class="layui-input">-->
			<!--</div>-->

			<!--<button class="layui-btn layui-btn-normal" lay-submit="search">搜索</button>-->
		</div>
	</form>
	<div class="layui-form" id="table-list">
		<table class="layui-table" lay-even lay-skin="nob">
			<colgroup>
				<col width="100">
				<col width="100">
				<col width="100">
				<col width="200">
				<col width="100">
				<col width="100">
				<col width="100">
				<col width="100">
				<col width="150">
			</colgroup>
			<thead>
			<tr>

				<th>标题</th>
				<th>原价</th>
				<th>现价</th>
				<th>产品描述</th>
				<th>库存量</th>
				<th>产品状态</th>
				<th>是否热门</th>
				<th>点击量</th>
				<th>创建时间</th>
				<th>更新时间</th>
				<th>操作</th>
			</tr>

			</thead>
			<tbody>
			<tr th:each="user:${productList}">

				<td th:text="${user.title}"></td>
				<td th:text="${user.oldProce}"></td>
				<td th:text="${user.nowPrice}"></td>
				<td th:text="${user.productDesc}"></td>
				<td th:text="${user.quantity}"></td>
				<td th:text="${user.status}"></td>
				<td th:text="${user.ishot}"></td>
				<td th:text="${user.cilckNum}"></td>


				<td th:text="${#dates.format(user.createTime,'yyyy-MM-dd HH:mm')}"></td>
				<td th:text="${#dates.format(user.updateTime,'yyyy-MM-dd HH:mm')}"></td>

				<td>
					<div class="layui-inline">
						<a th:href="${'/user/deleteProduct?id='+ user.id}" class="layui-btn layui-btn-mini layui-btn-danger"><i class="layui-icon">&#xe640;</i></a>
					</div>
				</td>
			</tr>
			</tbody>
		</table>
	</div>
</div>
<script src="../../static/admin/layui/layui.js" type="text/javascript" charset="utf-8"></script>
<script src="../../static/admin/js/common.js" type="text/javascript" charset="utf-8"></script>
<script>

</script>
</body>

</html>